﻿using System;

namespace enyo
{
    public class BasicDrawer : Control
    {
        /// <summary>
        /// Specifies whether the drawer should be open.
        /// </summary>
        public bool Open { get; set; }

        /// <summary>
        /// Controls whether or not the value of the open property may be changed.
        /// </summary>
        public bool CanChangeOpen { get; set; }

        /// <summary>
        /// Set to false to avoid animations when the open state of a drawer changes.
        /// </summary>
        public bool Animate { get; set; }

        /// <summary>
        /// Event that fires when a drawer opens or closes.
        /// </summary>
        public EnyoEvent<Control> onOpenChanged;

        /// <summary>
        /// Event that fires when a drawer animation completes.
        /// </summary>
        public EnyoEvent<Control> onOpenAnimationComplete;
    }
}
